package game.breeze.screen;

import java.util.concurrent.locks.ReentrantLock;

import game.breeze.Breeze;

import com.badlogic.gdx.Screen;
import com.badlogic.gdx.scenes.scene2d.Stage;

public abstract class BreezeScreen implements Screen {
	protected Breeze game;
	protected final ReentrantLock lock = new ReentrantLock();
	protected Stage stage;

	public BreezeScreen(Breeze game) {
		this.game = game;
	}

	@Override
	public void resize(int width, int height) {

	}

	@Override
	public void hide() {
		dispose();
	}

	@Override
	public void pause() {
	}

	@Override
	public void resume() {

	}

	@Override
	public void dispose() {
		stage.dispose();
		stage.clear();
		game = null;
		stage = null;
	}
}
